package com.iot.enums;

public enum AcceptApplyContentEnum {

    CHINESE(0,"$X同意了你的申请关注"),
    TRADITIONAL_CHINESE(1,"$X同意了你的申請關注"),
    ENGLISH(2,"$X agrees to your application for attention"),
    FRENCH(3,"$X accepte votre application Suivi"),
    GERMAN(4,"$X stimmt Ihrer Bewerbung zu. Folgen"),
    ITALIAN(5,"$X ha accettato la tua applicazione per attenzione"),
    JAPANESE(6,"$Xはあなたの申し出に同意しました"),
    POLISH(7,"$X zgodził się na twoją aplikację"),
    PORTUGUESE(8,"$X concorda com seu pedido de seguimento"),
    RUSSIAN(9,"$X согласился с вашей заявкой на внимание"),
    SPANISH(10,"$X acepta su solicitud seguimiento"),
    ARABIC(11,"يوافق $X على تطبيقك متابعة"),
    GREEK(12,"$X συμφωνεί με την προσοχή της αίτησής σας"),
    KOREAN(13,"$X는 당신의 신청에 동의했습니다."),
    THAI(14,"$X ตกลงกับใบสมัครของคุณ ติดตาม"),
    PERSIAN(15,"$X با برنامه شما موافقت کرد"),
    TURKISH(16,"$X başvurunuzu kabul etti."),
    VIETNAMESE(17,"$X đã đồng ý với ứng dụng của bạn theo dõi"),
    DUTCH(18,"$X is het akkoord met uw aanvraag"),
    DANISH(19,"$X er enig i din ansøgning om opmærksomhed"),
    CZECH(20,"$X souhlasil s vaší aplikací"),
    SWEDISH(21,"$X kom överens med din ansökan"),
    FINNISH(22,"$X on samaa mieltä hakemuksesi huomioistuimessa"),
    BULGARIAN_LANGUAGE(23,"$X се съгласи с вашето приложение"),
    UKRAINIAN(24,"$X погоджується з вашою заявкою"),
    HEBREW(25,"$X מסכים את הבקשה שלך");

    private Integer code;

    private String content;


    AcceptApplyContentEnum(Integer code, String content) {
        this.code = code;
        this.content = content;
    }

    public Integer getCode() {
        return code;
    }

    public String getContent() {
        return content;
    }

    public static String getByCode(Integer code){
        if (null == code) {
            return CHINESE.getContent();
        }

        for (ApplyContentEnum value : ApplyContentEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getContent();
            }
        }
        return CHINESE.getContent();
    }
}
